package org.mdrtwell.jdk15;

import java.util.Map;
import java.util.TreeMap;

public class Frequency {
	// if it is to be it is up to me to do the watusi
	public static void main(String[] args) {
		Map<String, Integer> map = new TreeMap<String, Integer>();
		for (String word : args) {
			Integer count = map.get(word);
			map.put(word, (count == null ? 1 : count + 1));// Autoboxing
		}
		System.out.println(map);
	}
}
